<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="./jquery-3.2.1.min.js"></script>
</head>
<body>

</body>
<script>
    var testArr = [
        {id:'111',value:'222'},
        {id:'333',value:'zxc'},
        {id:'555',value:'666'},
        {id:'777',value:'888'}
    ]
    console.log(testArr);

    var newTest = {};
    for(var i=0;i<testArr.length;i++){
        newTest[testArr[i].id] = testArr[i].value
    }
    console.log(newTest)


    var testArr2 = [
        {id:'zzz',value:'222'},
        {id:'333',value:'444'},
        {id:'ccc',value:'666'},
        {id:'fff',value:'888'}
    ]

    for(var i=0;i<testArr2.length;i++){
//        console.log(newTest[testArr2[i]])
        if(newTest[testArr2[i].id] != undefined){
            console.log(testArr2[i].value);
        }
    }


//

</script>
</html>